from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^add$', views.add, name='add_machine'),
    url(r'^insert$', views.insert, name='insert_machine'),
    url(r'^del/(?P<mid>[0-9]+)$',views.delete, name = 'delete_machine'),
    url(r'^view/(?P<mid>[0-9]+)$',views.view_usage, name = 'view_usage'),
    url(r'^login$', views.login, name = 'user_login'),
    url(r'^dologin$', views.dologin, name = 'user_dologin'),
    url(r'^logout$', views.logout , name = 'user_logout'),
]
